package cn.yl.course.server.entity;

import cn.yl.api.server.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * <p>
 * 课节视频表
 * </p>
 *
 * @author yl
 * @since 2022-04-22
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("course_media")
@ApiModel(value = "CourseMedia对象", description = "课节视频表")
public class CourseMedia extends BaseEntity {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("课程Id")
    @TableField("course_id")
    private Integer courseId;

    @ApiModelProperty("章ID")
    @TableField("section_id")
    private Integer sectionId;

    @ApiModelProperty("课时ID")
    @TableField("lesson_id")
    private Integer lessonId;

    @ApiModelProperty("封面图URL")
    @TableField("cover_image_url")
    private String coverImageUrl;

    @ApiModelProperty("时长（06:02）")
    @TableField("duration")
    private String duration;

    @ApiModelProperty("媒体资源文件对应的EDK")
    @TableField("file_edk")
    private String fileEdk;

    @ApiModelProperty("文件大小MB")
    @TableField("file_size")
    private Double fileSize;

    @ApiModelProperty("文件名称")
    @TableField("file_name")
    private String fileName;

    @ApiModelProperty("媒体资源文件对应的DK")
    @TableField("file_dk")
    private String fileDk;

    @ApiModelProperty("是否删除，0未删除，1删除")
    @TableField("is_del")
    @TableLogic
    private Boolean del;

    @ApiModelProperty("时长，秒数（主要用于音频在H5控件中使用）")
    @TableField("duration_num")
    private Integer durationNum;

    @ApiModelProperty("媒体资源文件ID")
    @TableField("file_id")
    private String fileId;


}
